package com.sanchunhui.psc.ui.activity

import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.sanchunhui.psc.R
import kotlinx.android.synthetic.main.header.*

/**
 * @Author zyx
 * @Date 2021/6/4-17:33
 * @Dscribe
 */

class MyTemActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_information)
        initHeader()
//        processIntent()
    }

    private fun initHeader() {

        back.visibility = View.VISIBLE
        headerTitle.visibility = View.VISIBLE

        back.setOnClickListener { finish() }
    }

//    private fun processIntent() {
//        if (intent.hasExtra("position")) {
//            val name = intent.getSerializableExtra("position")
//            when(name)  {
//                0 -> headerTitle.text = "统计"
//                1 -> headerTitle.text = "排名"
//
//            }
//        }
//    }

}